package com.pan.dao.couponHistory;

import com.pan.entity.CouponHistory;
import org.apache.ibatis.annotations.Mapper;

import java.sql.Timestamp;
import java.util.List;

@Mapper
public interface CouponHistorySelectDao{
    CouponHistory selectById(Long id);
    List<CouponHistory> selectByCouponId(Long couponId);
    List<CouponHistory> selectByUserId(Long userId);
    List<CouponHistory> selectByCreateDate(Timestamp createDate);
    List<CouponHistory> selectByUseType(Integer useType);
    List<CouponHistory> selectByUseDate(Timestamp useDate);
    List<CouponHistory> selectByOrderId(Long orderId);
}